package adv331;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * @author oldliu
 * @since 1.0
 */
public class FileWriterTest {
    public static void main(String[] args) {
        try {
            Writer w=new FileWriter("D:\\temp\\3-31.txt");
            for (int i = 0; i < 20; i++) {
                w.write("教育改变生活\r\n");
            }
            for (int i = 0x4e00; i <=0x9fa5 ; i++) {
                w.write(i);
            }
            w.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
